/*
 * @Author: lvye
 * @Description:
 * @Date: 2023-08-22 16:27:51
 * @LastEditTime: 2023-09-07 14:11:38
 * @FilePath: \vue3-ts\src\service\main\system\system.ts
 */
import hyRequest from "@/service/index"
import { IDataType } from "../../type"
// 获取列表
export function getPageListData(url: string, queryInfo: any) {
  return hyRequest.post<IDataType>({
    url: url,
    data: queryInfo
  })
}
// 删除列表
export function deletePageData(url: string) {
  return hyRequest.delete<IDataType>({
    url: url
  })
}
// 创建列表
export function createPageData(url: string, newData: any) {
  return hyRequest.post<IDataType>({
    url: url,
    data: newData
  })
}
// 编辑列表
export function editPageData(url: string, editData: any) {
  return hyRequest.post<IDataType>({
    url: url,
    data: editData
  })
}
